package com.example.work3.repository;

import com.example.work3.entity.Course;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface CourseRepository extends JpaRepository<Course, Integer> {
    public List<Course> findByName(String name);
    public List<Course> findByCredits(double credits);
    public List<Course> findByNameAndCredits(String name, double credits);
}
